<!-- app/View/Users/add.ctp -->
<div class="users form">

<?php echo $this->Form->create('User');?>
	<table>

<td align="right"><span class="lbutton"><?php echo $this->Html->link( "Regresar",   array('action'=>'index') ); ?></span></td>
	</table>
    <fieldset>
        <legend><?php echo __('Añadir Usuario'); ?></legend>
        <?php echo $this->Form->input('username', array('label'=>'usuario'));
		echo $this->Form->input('email');
        echo $this->Form->input('password');
		echo $this->Form->input('password_confirm', array('label' => 'Confirm Password *', 'maxLength' => 255, 'title' => 'Confirm password', 'type'=>'password'));
        echo $this->Form->input('role_id');
		echo $this->Form->input('estado',array("type"=>"select","options"=>array(1 => "Activo",2 => "Inactivo")));
		
		echo $this->Form->submit('Añadir  Usuario', array('class' => 'form-submit',  'title' => 'Click Aqui para añadir usuario') ); 
?>
    </fieldset>
<?php echo $this->Form->end(); ?>
</div>
<!--<?php 
if($this->Session->check('Auth.User')){
echo $this->Html->link( "Return to Dashboard",   array('action'=>'index') ); 
echo "<br>";
echo $this->Html->link( "Logout",   array('action'=>'logout') ); 
}else{
echo $this->Html->link( "Return to Login Screen",   array('action'=>'login') ); 
}
?>-->